using System;
using Org.BouncyCastle.Math;
namespace ch.ethz.ssh2.packets
{
	
	/// <summary> PacketKexDhGexInit.
	/// 
	/// </summary>
	/// <author>  Christian Plattner
	/// </author>
	/// <version>  2.50, 03/15/10
	/// </version>
	public class PacketKexDhGexInit
	{
		virtual public byte[] Payload
		{
			get
			{
				if (payload == null)
				{
					TypesWriter tw = new TypesWriter();
					tw.writeByte(Packets.SSH_MSG_KEX_DH_GEX_INIT);
					tw.writeMPInt(e);
					payload = tw.getBytes();
				}
				return payload;
			}
			
		}
		internal byte[] payload;
		
		internal BigInteger e;
		
		public PacketKexDhGexInit(BigInteger e)
		{
			this.e = e;
		}
	}
}